package xyz.feiwo.singleton;

/**
 * Created by fei wo at 2021/4/21.
 *
 * @author fei wo <a mailto:feiwodev@foxmail.com>feiwodev@foxmail.com</a>
 * @since 1.0
 */
public enum EnumSingleton {

    INSTANCE;

    public static void main(String[] args) {

        EnumSingleton singleton01 = EnumSingleton.INSTANCE;
        EnumSingleton singleton02 = EnumSingleton.INSTANCE;

        System.out.println(singleton01 == singleton02);
    }

}
